import { useStore } from 'vuex'

export default {
  computed: {
    store() {
      return useStore()
    },
    theme() {
      return this.store.state.theme
    }
  },
  methods: {
    toggleTheme(theme = 'light') {
      this.store.commit('setTheme', theme)
    }
  },
}